﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Classes {

    public class Delegate {

        public static function create(_arg1, _arg2:Function, ... _args):Function{
            var target:* = _arg1;
            var handler:* = _arg2;
            var rest:* = _args;
            var delegate:* = function (... _args){
                var _local2:Array = _args.concat(rest);
                return (handler.apply(target, _local2));
            };
            return (delegate);
        }

    }
}//package Classes 
